/*
 * @Author: taoyuqing
 * @Date: 2023-01-02 17:33:43
 * @Description: 
 */
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:spree/widgets/common_container.dart';

import '../../widgets/menu_bar.dart';

class BonusesPage extends StatefulWidget {
  BonusesPage({Key? key}) : super(key: key);

  @override
  State<BonusesPage> createState() => _BonusesPageState();
}

class _BonusesPageState extends State<BonusesPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        centerTitle: true,
        title: SvgPicture.asset('images/BETSPREELOGO.svg'),
      ),
      body: CommonContainer(
        child: ListView(
          padding: EdgeInsets.only(top: 20),
          children: [
            Container(
              child: Image.asset('images/bonuses-img.png'),
            ),
            Container(
              
                child: Column(
                  children: _listGames(
                      ['images/bonuses-bg1.png', 'images/bonuses-bg2.png']),
                )),
          ],
        ),
      ),
    );
  }

  List<Widget> _listGames(List list) {
    return list.map(
      (e) {
        return Container(
          margin: EdgeInsets.only(top: 20),
          child: Image.asset(e),
        );
      },
    ).toList();
  }
}
